<div class="page">
	<div class="pageContent">
		<form id="pageAdd" type="post" action="/page" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
			<div class="pageFormContent" layoutH="57">
				<div class="unit">
					<label>页面标题：</label>
					<input class="textInputRequired required" type="text" size="30" name="title" focus="true" />
				</div>
				<div class="unit">
					<label>唯一值：</label>
					<input type="text" size="30" name="pagekey" focus="true" />
				</div>
				<div class="unit">
					<label>关键字：</label>
					<input type="text" size="30" name="keywords" focus="true" />
				</div>
				<div class="textareaBar">
					<label>页面模板：</label>
					<textarea name="templet" cols="45" rows="5"></textarea>
				</div>
				<div class="textareaBar">
					<label>模板样例：</label>
					<textarea name="demo" cols="45" rows="5"></textarea>
				</div>
				<div class="textareaBar">
					<label>描述：</label>
					<textarea name="description" cols="45" rows="5"></textarea>
				</div>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit" class="ok">提交</button></div></div></li>
					<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
				</ul>
			</div>
		</form>
	</div>
</div>
<script>
	function uploadDemoLayoutShape(msg){
		var content=$("div.pageFormContent");
		$("img[name=shape]",content).attr("src",msg[0].path.split(",")[0]).click(function(){
			var win=window.open("about:blank");
			win.document.body.innerHTML="<img src="+msg[0].origin+">"
		});//.attr("oldpath",msg[0].origin);
		$("input[name=picture]",content).val(msg[0].file_id);
	}
</script>